using System;

using KodeIT.Web.Hosting;

namespace KodeIT.Web
{
    internal class NativeContext
    {
        internal FilterSession Session;
        internal IntPtr ContextPtr;
        internal IntPtr EventPtr;
        internal FilterEvent EventType;

        internal NativeContext(IProxySession session, IntPtr contextPtr, FilterEvent eventType)
            : this(session, contextPtr, IntPtr.Zero, eventType)
        {
        }

        internal NativeContext(IProxySession session, IntPtr contextPtr, IntPtr eventPtr, FilterEvent eventType)
        {
            Session = session as FilterSession;
            ContextPtr = contextPtr;
            EventPtr = eventPtr;
            EventType = eventType;
        }
    }
}
